@extends('host.custom.common.common')

@section('body')
        <!-- top_test -->
<div id="top_test"></div>

<!-- web_logo_search -->
<div id="web_logo_search"></div>

<!-- comm_nav -->
<div id="comm_nav"></div>


<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div class="w220 mr20 comm-left-menu">
            <div class="menu-top-title">供应商中心</div>
            <div id="leftmenuitems">
            </div>
        </div>

        <div class="w960 comm-main">
            <div class="main-release clearfix">
                <div class="main-release-nav">
                    您当前的位置：首页 > 供应商中心
                </div>
                <div class="main-release-title">
                        <span class="icons">

                        </span>
                        <span class="release-title-h3 f16">
                            账户首页
                        </span>
                </div>
                <div class="main-release-from">
                    <div class="user-index clearfix">
                        <div class="index-logo">
                            <img src="{{ $member->store->store_logo }}">
                        </div>
                        <div class="index-info">
                                <span class="info-list">欢迎您，<font class="username">{{ $member->user }}</font>
                                    <a href="{{ route('account.provider.company') }}" class="edit">编辑公司资料</a>
                                </span>
                                <span class="info-list">
                                    <span class="info-list-l">供应商名称：</span>
                                    <span class="info-list-r">{{ $member->information->company }}</span>
                                </span>
                                <span class="info-list">
                                您有 <font class="news">10</font> 条短消息，<a href="{{ route('account.message') }}"
                                                                        class="click">点击查看</a>
                                </span>
                                <span class="info-list">
                                    <span class="info-list-l">卖家信用：</span>
                                    <span class="info-list-r">90</span>
                                </span>
                                <span class="info-list">
                                    <span class="info-list-l">主营项目：</span>
                                    <span class="info-list-r coffee" style="width: 70%">
                                        @foreach($member->store->mainCategory as $value)
                                            {{ $value->name }}
                                        @endforeach
                                    </span>
                                </span>
                        </div>
                    </div>
                    <div class="user-balance">
                        <div class="account-balance">
                            <span class="money-left">账户总金额：</span>
                            <span class="money-right">0.00</span>元
                        </div>
                        <div class="account-balance1">
                            <div class="clearfix money f14">
                                <span class="money-left f14">可用余额：</span>
                                <span class="money-right">0.00</span>元
                            </div>
                            <div class="clearfix money f14">
                                <span class="money-left f14">结算保护金额：</span>
                                <span class="money-right">0.00</span>元
                            </div>
                            <div class="clearfix money f14">
                                <span class="money-left f14">冻结中的金额：</span>
                                <span class="money-right">0.00</span>元
                            </div>
                        </div>
                    </div>
                    <div class="main-bottom">
                        <ul class="clearfix">
                            <li class="bottom-t">供求信息提醒：</li>
                            <li class="bottom-b">
                                <a class="f-orange"
                                   href="{{ route('account.counter-offer.index') }}">新收到的还盘信息（{{ Auth::user()->receiveCounters()->where('created_at', '>=', date('Y-m-d', time() - 84200 * 3))->count() }}
                                    ）</a></li>
                        </ul>
                        <ul class="clearfix">
                            <li class="bottom-t">分销交易提醒：</li>
                            <li class="bottom-b">
                                <a class="f-orange" href="{{ route('account.provider.order.index') }}">待付款（<span class="f-orange f14" >{{ Auth::user()->purchaserOrders()->whereStatus(2)->count() }}</span>）</a>
                                <a class="f-orange">已付款（<span class="f-orange f14" >0</span>）</a>
                                <a class="f-orange">待收货确认（<span class="f-orange f14" >0</span>）</a>
                                <a class="f-orange">已完成（<span class="f-orange f14" >0</span>）</a>
                            </li>
                        </ul>
                        <ul class="clearfix">
                            <li class="bottom-t">分销关系提醒：</li>
                            <li class="bottom-b">
                                <a class="f-orange" href="{{ route('account.member.authorization.request.index') }}">申请中的采购商（<span class="f-orange f14" >{{ Auth::user()->providerAuthorizationRequests()->whereStatus(1)->count() }}</span>）</a>
                                <a class="f-orange" href="{{ route('account.my-purchaser.index') }}">合作中的采购商（<span class="f-orange f14" >{{ Auth::user()->providerAuthorizationRequests()->whereProcessStatus(1)->count() }}</span> ）</a>
                                <a class="f-orange" href="{{ route('account.my-purchaser.index') }}">终止的采购商（<span class="f-orange f14" >{{ Auth::user()->providerAuthorizationRequests()->whereProcessStatus(2)->count() }}</span>）</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- foot_nav -->
<div id="foot_nav"></div>

<div id="bottom_main"></div>
<script>
    $(function () {
        // 渲染页面-通用部分；
        commTemplUtil.initPage();

        // 渲染左侧菜单;
        commTemplUtil.initCommLeftMemu();
    });
</script>

@stop